package com.qf.smsplatform.interfaces.service.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @Author: LeeRui
 * 2021/1/26 下午 8:41
 **/
//通过此API调用Cache模块与Redis交互
@FeignClient(value = "sms-platform-cache")
public interface CacheService {
    //通过key从key-hash结构中获取数据
    @RequestMapping(value = "/cache/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);
}
